﻿using System;
using System.Collections.Generic;
using System.Text;
using AMS.UI.Controls;
using System.Threading;

namespace AMS.UI.Forms
{
    /// <summary>
    /// 代表一个Application
    /// </summary>
    public class AmsUIApplication
    {
        private static int IsInitialized = 0;

        /// <summary>
        /// 初始化运行环境
        /// </summary>
        public static void Initialize()
        {
            if (IsInitialized == 1 || 1 == Interlocked.Exchange(ref IsInitialized, 1))
            {
                return;
            }

            TypePool.SetType("Exporter", typeof(FrmExport));
        }
    }
}
